package com.tigercel.xiangchengyun.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.tigercel.xiangchengyun.R
import com.tigercel.xiangchengyun.entity.MyCollectionsEntity


/**
 * Created by wqj on 2018/6/1.
 */
class MyCollectionAdapter(layoutResId: Int, data: List<MyCollectionsEntity>?) : BaseQuickAdapter<MyCollectionsEntity, BaseViewHolder>(layoutResId, data) {

    override fun convert(helper: BaseViewHolder, item: MyCollectionsEntity) {
        helper.setText(R.id.collection_title,item.title)
        helper.setText(R.id.collection_time,item.time)
        helper.setText(R.id.collection_tv_look_up,item.vieies)
        helper.setText(R.id.collection_news_source,item.publish)
    }
}